<?php
class Helper_Curl {
	
	public static function build_request($body) 
	{ 
		$url = 'http://data.manuras.com';
		$c = curl_init ($url);
		curl_setopt ($c, CURLOPT_POST, true);
		curl_setopt ($c, CURLOPT_POSTFIELDS, $body);
		curl_setopt ($c, CURLOPT_RETURNTRANSFER, true);
		$result = curl_exec ($c);
		curl_close ($c);
		// Turn the answer into an array.
		//var_dump($result);
		return Helper_XmlToArray::xml2array(new SimpleXMLElement($result));
	}
}